<?php
return array (
		'basePath' => dirname ( __FILE__ ) . DIRECTORY_SEPARATOR . '..',
		'name' => '管理后台',
		'homeUrl' => '/site/index',
		
		// autoloading model and component classes
		'import' => array (
				'application.components.*',
				'application.model.*' 
		),
		
		// application components
		'components' => array (
				'user' => array (
						/*
						'identityCookie' => array (
								'domain' => '.bsapo.com',
								'path' => '/' 
						),
						'stateKeyPrefix' => 'bsapo_admin',*/
						// enable cookie-based authentication
						'allowAutoLogin' => true,
						'loginUrl' => '/site/login' 
				),
				/*
				'session' => array (
						'cookieParams' => array (
								'domain' => '.bsapo.com',
								'lifetime' => 0 
						),
						'timeout' => 1440 
				),*/
				'statePersister' => array (
						'class' => 'CStatePersister' 
				),
				// uncomment the following to enable URLs in path-format
				'urlManager' => array (
						'urlFormat' => 'path',
						'showScriptName' => false,
						'rules' => array (
								'<controller:\w+>/<id:\d+>' => '<controller>/view',
								'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
								'<controller:\w+>/<action:\w+>' => '<controller>/<action>' 
						) 
				),
				'errorHandler' => array (
						'errorAction' => 'site/error' 
				) 
		),
		
		// application-level parameters that can be accessed
		'params' => array (
				'adminEmail' => 'james@infocn.cn',
				'MIME_JSON' => 'application/json',
				'page_size' => 10,
				'serious_error' => '严重错误',
				'common_error' => '未知错误' 
		) 
);
